import Vue from 'vue'
import Router from 'vue-router'
import confirm from '@/components/confirm'
import result from '@/components/result'
import list from '@/components/list'
import index from '@/components/index'
import notice from '@/components/notice'
import PageQuery from '@/components/PageQuery'
import PersonalAgent from '@/components/PersonalAgent'
import Illegality from '@/components/Illegality'
import draw from '@/components/draw'
import payment from '@/components/payment'
import svaenotice from '@/components/svaenotice'
import detail from '@/components/svaenticeDetail'
import declaration from '@/components/declaration'


Vue.use(Router);

export default new Router({
  routes: [
    {
      //查询列表
      path: '/',
      name: 'confirm',
      component: confirm
    },
    {//综合查询列表
      path: '/list',
      name: 'list',
      component: list
    },
    {//默认登录
      path: '/index',
      name: 'index',
      component: index
    },
    {
      //上传通知
      path: '/notice',
      name: 'notice',
      component: notice
    },
    {//行政处罚决定书
      path: '/PageQuery',
      name: 'PageQuery',
      component: PageQuery
    },
    {//个人清单查询
      path: '/PersonalAgent',
      name: 'PersonalAgent',
      component: PersonalAgent
    },
    {//个人违法通知
      path: '/Illegality',
      name: 'Illegality',
      component: Illegality,

    },
    {//电子签名
      path: '/draw',
      name: 'draw',
      component: draw
    },
    {//历史通知书查询
      path: '/svaenotice',
      name: 'svaenotice',
      component: svaenotice,
    },
    //历史详情
    {
      path:"/detail",
      name:"svaenticeDetail",
      component:detail
    },
    {//详情页
      path: '/result',
      name: 'result',
      component: result
    },
    {//预支付
      path: '/payment',
      name: 'payment',
      component: payment
    },
    {//签约电子声明
      path: '/declaration',
      name: 'declaration',
      component: declaration
    }
  ]
})
